package com.huangmin66.rongcloud.ui;

import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.huangmin66.rongcloud.R;


/**
 * 融云会话界面
 */
public class ConversationActivity extends FragmentActivity {

    ImageView mTitleLeftIconIv;
    TextView mTitleCenterTextTv;

    String mTargetId;
    String mTitleText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_conversation);

        mTargetId = getIntent().getData().getQueryParameter("targetId");
        mTitleText = getIntent().getData().getQueryParameter("title");

        mTitleLeftIconIv = findViewById(R.id.title_left_icon_iv);
        mTitleCenterTextTv = findViewById(R.id.title_center_text_tv);

        mTitleLeftIconIv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        mTitleCenterTextTv.setText(mTitleText);
    }
}
